<template>
  <div class="names">
    <template v-for="(item, index) in names">
      <slot :item="item" :index="index" :id="id"></slot>
    </template>
  </div>
</template>

<script>
export default {
  props: {
    names: {
      tyoe: Array,
      default: () => [],
    },
  },
  data() {
    return {id:111}
  },
}
</script>
<style scoped></style>
